home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3774 < prev    next >
Mailbox/MIME Entity  |  1996-08-06  |  1.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 6c 61 6e 67 2e 63 2b | 2b 0a 50 61 74 68 3a 20 |.lang.c+|+.Path: |
|00000020| 69 6e 32 2e 75 75 2e 6e | 65 74 21 62 63 73 74 65 |in2.uu.n|et!bcste|
|00000030| 63 21 6e 6e 74 70 0a 46 | 72 6f 6d 3a 20 4b 65 76 |c!nntp.F|rom: Kev|
|00000040| 69 6e 20 49 6e 67 61 6c | 6c 73 20 3c 69 6e 67 6b |in Ingal|ls <ingk|
|00000050| 6c 39 30 30 40 63 63 6d | 61 69 6c 2e 63 61 2e 62 |l900@ccm|ail.ca.b|
|00000060| 6f 65 69 6e 67 2e 63 6f | 6d 3e 0a 53 75 62 6a 65 |oeing.co|m>.Subje|
|00000070| 63 74 3a 20 52 65 3a 20 | 63 6f 6e 73 74 61 6e 74 |ct: Re: |constant|
|00000080| 20 64 65 66 69 6e 69 74 | 69 6f 6e 73 20 69 6e 20 | definit|ions in |
|00000090| 68 65 61 64 65 72 20 66 | 69 6c 65 73 0a 58 2d 4e |header f|iles.X-N|
|000000a0| 6e 74 70 2d 50 6f 73 74 | 69 6e 67 2d 48 6f 73 74 |ntp-Post|ing-Host|
|000000b0| 3a 20 31 33 37 2e 31 33 | 36 2e 31 36 2e 31 34 39 |: 137.13|6.16.149|
|000000c0| 0a 43 6f 6e 74 65 6e 74 | 2d 54 79 70 65 3a 20 74 |.Content|-Type: t|
|000000d0| 65 78 74 2f 70 6c 61 69 | 6e 3b 20 63 68 61 72 73 |ext/plai|n; chars|
|000000e0| 65 74 3d 75 73 2d 61 73 | 63 69 69 0a 4d 65 73 73 |et=us-as|cii.Mess|
|000000f0| 61 67 65 2d 49 44 3a 20 | 3c 44 4c 72 48 72 74 2e |age-ID: |<DLrHrt.|
|00000100| 45 71 4a 40 62 63 73 74 | 65 63 2e 63 61 2e 62 6f |EqJ@bcst|ec.ca.bo|
|00000110| 65 69 6e 67 2e 63 6f 6d | 3e 0a 54 6f 3a 20 6e 65 |eing.com|>.To: ne|
|00000120| 6c 77 61 6e 40 6d 77 5f | 74 78 31 2e 74 63 61 2e |lwan@mw_|tx1.tca.|
|00000130| 66 67 67 2e 65 75 72 2e | 6e 6c 0a 53 65 6e 64 65 |fgg.eur.|nl.Sende|
|00000140| 72 3a 20 6e 6e 74 70 40 | 62 63 73 74 65 63 2e 63 |r: nntp@|bcstec.c|
|00000150| 61 2e 62 6f 65 69 6e 67 | 2e 63 6f 6d 20 28 4e 4e |a.boeing|.com (NN|
|00000160| 54 50 20 4e 65 77 73 20 | 41 63 63 65 73 73 29 0a |TP News |Access).|
|00000170| 43 6f 6e 74 65 6e 74 2d | 54 72 61 6e 73 66 65 72 |Content-|Transfer|
|00000180| 2d 45 6e 63 6f 64 69 6e | 67 3a 20 37 62 69 74 0a |-Encodin|g: 7bit.|
|00000190| 4f 72 67 61 6e 69 7a 61 | 74 69 6f 6e 3a 20 42 6f |Organiza|tion: Bo|
|000001a0| 65 69 6e 67 20 44 65 66 | 65 6e 73 65 20 26 20 53 |eing Def|ense & S|
|000001b0| 70 61 63 65 20 47 72 6f | 75 70 20 54 72 61 69 6e |pace Gro|up Train|
|000001c0| 69 6e 67 0a 52 65 66 65 | 72 65 6e 63 65 73 3a 20 |ing.Refe|rences: |
|000001d0| 3c 33 31 30 37 36 39 39 | 45 2e 33 45 41 35 40 6d |<3107699|E.3EA5@m|
|000001e0| 77 5f 74 78 31 2e 74 63 | 61 2e 66 67 67 2e 65 75 |w_tx1.tc|a.fgg.eu|
|000001f0| 72 2e 6e 6c 3e 0a 4d 69 | 6d 65 2d 56 65 72 73 69 |r.nl>.Mi|me-Versi|
|00000200| 6f 6e 3a 20 31 2e 30 0a | 44 61 74 65 3a 20 46 72 |on: 1.0.|Date: Fr|
|00000210| 69 2c 20 32 36 20 4a 61 | 6e 20 31 39 39 36 20 30 |i, 26 Ja|n 1996 0|
|00000220| 30 3a 30 39 3a 32 38 20 | 47 4d 54 0a 58 2d 4d 61 |0:09:28 |GMT.X-Ma|
|00000230| 69 6c 65 72 3a 20 4d 6f | 7a 69 6c 6c 61 20 31 2e |iler: Mo|zilla 1.|
|00000240| 31 4e 20 28 4d 61 63 69 | 6e 74 6f 73 68 3b 20 49 |1N (Maci|ntosh; I|
|00000250| 3b 20 50 50 43 29 0a 58 | 2d 55 72 6c 3a 20 6e 65 |; PPC).X|-Url: ne|
|00000260| 77 73 3a 33 31 30 37 36 | 39 39 45 2e 33 45 41 35 |ws:31076|99E.3EA5|
|00000270| 40 6d 77 5f 74 78 31 2e | 74 63 61 2e 66 67 67 2e |@mw_tx1.|tca.fgg.|
|00000280| 65 75 72 2e 6e 6c 0a 0a | 53 74 65 66 61 6e 20 4e |eur.nl..|Stefan N|
|00000290| 65 6c 77 61 6e 20 3c 6e | 65 6c 77 61 6e 40 6d 77 |elwan <n|elwan@mw|
|000002a0| 5f 74 78 31 2e 74 63 61 | 2e 66 67 67 2e 65 75 72 |_tx1.tca|.fgg.eur|
|000002b0| 2e 6e 6c 3e 20 77 72 6f | 74 65 3a 0a 3e 48 69 21 |.nl> wro|te:.>Hi!|
|000002c0| 0a 3e 0a 3e 49 20 61 6d | 20 63 75 72 69 6f 75 73 |.>.>I am| curious|
|000002d0| 20 61 62 6f 75 74 20 74 | 68 65 20 63 6f 6d 6d 6f | about t|he commo|
|000002e0| 6e 20 69 6d 70 6c 65 6d | 65 6e 74 61 74 69 6f 6e |n implem|entation|
|000002f0| 20 6f 66 20 75 73 69 6e | 67 20 63 6f 6e 73 74 20 | of usin|g const |
|00000300| 69 6e 74 27 73 20 69 6e | 0a 3e 68 65 61 64 65 72 |int's in|.>header|
|00000310| 20 66 69 6c 65 73 20 75 | 6e 64 65 72 20 0a 3e 64 | files u|nder .>d|
|00000320| 69 66 66 65 72 65 6e 74 | 20 63 6f 6d 70 69 6c 65 |ifferent| compile|
|00000330| 72 73 2e 20 41 63 63 6f | 72 64 69 6e 67 20 74 6f |rs. Acco|rding to|
|00000340| 20 22 54 68 65 20 43 2b | 2b 20 70 72 6f 67 72 61 | "The C+|+ progra|
|00000350| 6d 6d 69 6e 67 20 6c 61 | 6e 67 75 61 67 65 22 0a |mming la|nguage".|
|00000360| 3e 28 53 74 72 6f 75 73 | 74 72 75 70 29 2c 20 6f |>(Strous|trup), o|
|00000370| 6e 6c 79 20 0a 3e 73 69 | 6d 70 6c 65 20 63 6f 6e |nly .>si|mple con|
|00000380| 73 74 61 6e 74 73 20 6d | 61 79 20 62 65 20 70 6c |stants m|ay be pl|
|00000390| 61 63 65 64 20 69 6e 20 | 68 65 61 64 65 72 20 66 |aced in |header f|
|000003a0| 69 6c 65 73 2e 20 49 74 | 20 69 73 20 75 70 20 74 |iles. It| is up t|
|000003b0| 6f 20 74 68 65 20 63 6f | 6d 70 69 6c 65 72 0a 3e |o the co|mpiler.>|
|000003c0| 74 6f 20 65 6e 73 75 72 | 65 20 6e 6f 0a 3e 72 65 |to ensur|e no.>re|
|000003d0| 64 75 6e 64 61 6e 74 20 | 63 6f 70 69 65 73 20 6f |dundant |copies o|
|000003e0| 66 20 74 68 6f 73 65 20 | 63 6f 6e 73 74 61 6e 74 |f those |constant|
|000003f0| 73 20 61 72 65 20 67 65 | 6e 65 72 61 74 65 64 2e |s are ge|nerated.|
|00000400| 20 0a 3e 0a 3e 41 72 65 | 20 74 68 65 20 63 75 72 | .>.>Are| the cur|
|00000410| 72 65 6e 74 20 43 2b 2b | 2d 63 6f 6d 70 69 6c 65 |rent C++|-compile|
|00000420| 72 73 20 73 6d 61 72 74 | 20 65 6e 6f 75 67 68 20 |rs smart| enough |
|00000430| 74 6f 20 72 65 63 6f 67 | 6e 69 7a 65 20 6d 75 6c |to recog|nize mul|
|00000440| 74 69 70 6c 65 20 63 6f | 70 69 65 73 0a 3e 6f 66 |tiple co|pies.>of|
|00000450| 20 74 68 65 20 63 6f 6e | 73 74 61 6e 74 20 74 79 | the con|stant ty|
|00000460| 70 65 73 3f 0a 3e 0a 3e | 0a 3e 62 79 65 2c 0a 3e |pes?.>.>|.>bye,.>|
|00000470| 0a 3e 53 74 65 66 61 6e | 2e 0a 0a 0a 41 73 20 49 |.>Stefan|....As I|
|00000480| 20 75 6e 64 65 72 73 74 | 6f 6f 64 20 69 74 2c 20 | underst|ood it, |
|00000490| 63 6f 6e 73 74 27 73 20 | 61 74 20 74 68 65 20 67 |const's |at the g|
|000004a0| 6c 6f 62 61 6c 20 6c 65 | 76 65 6c 20 61 72 65 20 |lobal le|vel are |
|000004b0| 61 75 74 6f 6d 61 74 69 | 63 61 6c 6c 79 0a 73 74 |automati|cally.st|
|000004c0| 61 74 69 63 2e 20 53 6f | 2c 20 77 68 69 6c 65 20 |atic. So|, while |
|000004d0| 74 68 65 72 65 20 6d 61 | 79 20 62 65 20 73 65 76 |there ma|y be sev|
|000004e0| 65 72 61 6c 20 63 6f 70 | 69 65 73 20 6f 66 20 61 |eral cop|ies of a|
|000004f0| 20 63 6f 6e 73 74 20 28 | 6f 6e 65 20 66 6f 72 20 | const (|one for |
|00000500| 65 61 63 68 0a 74 69 6d | 65 20 74 68 61 74 20 68 |each.tim|e that h|
|00000510| 65 61 64 65 72 20 66 69 | 6c 65 20 69 73 20 23 69 |eader fi|le is #i|
|00000520| 6e 63 6c 75 64 65 27 64 | 29 2c 20 65 61 63 68 20 |nclude'd|), each |
|00000530| 6f 66 20 74 68 65 6d 20 | 77 6f 75 6c 64 20 62 65 |of them |would be|
|00000540| 20 75 6e 69 71 75 65 0a | 74 6f 20 61 20 70 61 72 | unique.|to a par|
|00000550| 74 69 63 75 6c 61 72 20 | 6f 62 6a 65 63 74 20 6d |ticular |object m|
|00000560| 6f 64 75 6c 65 2e 20 54 | 68 69 73 20 77 6f 75 6c |odule. T|his woul|
|00000570| 64 20 61 63 74 20 61 73 | 20 74 68 6f 75 67 68 20 |d act as| though |
|00000580| 74 68 65 20 63 6f 6e 73 | 74 27 73 0a 77 65 72 65 |the cons|t's.were|
|00000590| 20 23 64 65 66 69 6e 65 | 20 6d 61 63 72 6f 73 2c | #define| macros,|
|000005a0| 20 62 75 74 20 74 68 65 | 72 65 20 77 6f 75 6c 64 | but the|re would|
|000005b0| 20 62 65 20 73 6f 6d 65 | 20 73 70 61 63 65 20 75 | be some| space u|
|000005c0| 73 65 64 20 62 79 20 74 | 68 65 20 0a 6f 62 6a 65 |sed by t|he .obje|
|000005d0| 63 74 73 2e 0a 20 20 0a | 4b 65 76 69 6e 20 49 6e |cts.. .|Kevin In|
|000005e0| 67 61 6c 6c 73 2c 20 28 | 32 30 36 29 37 37 33 2d |galls, (|206)773-|
|000005f0| 39 34 30 34 2c 20 69 6e | 67 6b 6c 39 30 30 40 63 |9404, in|gkl900@c|
|00000600| 63 6d 61 69 6c 2e 63 61 | 2e 62 6f 65 69 6e 67 2e |cmail.ca|.boeing.|
|00000610| 63 6f 6d 0a 0a 0a | |com... | |
+--------+-------------------------+-------------------------+--------+--------+